package com.mvc.service.impl;

import com.mvc.entity.User;
import com.mvc.mapper.LoginMapper;
import com.mvc.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName LoginServiceImpl
 * @Description TODO
 * @Author king
 * @Date 2021/12/9 17:05
 * @Version 1.0
 **/
@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;
    @Override
    public List<User> listSearch(Integer uid, String upassword) {

        return loginMapper.listSearch(uid, upassword);
    }

    @Override
    public Integer insert(User User) {
        return loginMapper.insert(User) ;
    }
}
